<security:authorize ifAnyGranted="ROLE_CA,ROLE_SCA">
  <c:if test="${loanRequest.status!='request_denied'}">
    <div class="box box-danger">
      <div class="box-header">
        <h3 class="box-title"><fmt:message key="loanRequestDetail.caVerify"/></h3>&nbsp;&nbsp;
      </div>
      <!-- /.box-header -->
      <div class="box-body">
        <div class="form-horizontal">
          <div class="form-group">
            <label class="control-label col-sm-2"><fmt:message key="loanRequestDetail.identityMaterial"/> </label>
            <div class="col-sm-4">
             <form:input path="identityCert" cssClass="form-control"/>
            </div>
              <label class="control-label col-sm-2"><fmt:message key="loanRequestDetail.liveMaterial"/> </label>
              <div class="col-sm-4">
                  <form:select cssClass="form-control" path="addressCert" id="addressCert" disabled="${!editCondition}">
                      <option value=""><fmt:message key="option.select"/></option>
                      <form:options items="${addressCertificates}" itemValue="label" itemLabel="label"/>
                  </form:select>
              </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2"><fmt:message key="loanRequestBankList"/> </label>
            <div class="col-sm-4">
              <form:select cssClass="form-control" path="incomeCert" id="incomeCert" disabled="${!editCondition}">
                <option value=""><fmt:message key="option.select"/></option>
                <form:options items="${incomeCertificates}" itemValue="label" itemLabel="label"/>
              </form:select>
            </div>
              <label class="control-label col-sm-2"><fmt:message key="loanRequestDriverType"/> </label>
              <div class="col-sm-4">
                  <form:select cssClass="form-control" path="driveCert" id="driveCert" disabled="${!editCondition}">
                      <option value=""><fmt:message key="option.select"/></option>
                      <form:options items="${driveCertificates}" itemValue="label" itemLabel="label"/>
                  </form:select>
              </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2"><fmt:message key="loanRequest.propertyGuarented"/> </label>
            <div class="col-sm-4">
              <form:checkbox path="propertyGuarented" disabled="${!editCondition}"/>
            </div>
              <label class="control-label col-sm-2"><fmt:message key="loanRequest.annualMustCost"/> </label>
              <div class="col-sm-4">
                  <form:input cssClass="form-control" path="annualMustCost" id="annualMustCost"
                              maxlength="255" disabled="${!editCondition}" />
              </div>
          </div>
            <input hidden value="${costGetFromCounty}" id="costGetFromCounty"/>
          <div class="form-group">
            <label class="control-label col-sm-2"><fmt:message key="loanRequest.propertyArea"/> </label>
            <div class="col-sm-4">
              <form:input cssClass="form-control" path="propertyArea" id="propertyArea"
                                maxlength="255" disabled="${!editCondition}" />
            </div>
              <label class="control-label col-sm-2"><fmt:message key="loanRequest.pricePerSquare"/> </label>
              <div class="col-sm-4">
                  <form:input cssClass="form-control" path="pricePerSquare" id="pricePerSquare"
                              maxlength="255" disabled="${!editCondition}" />
              </div>
          </div>
            <div id="showRate" class="form-group">
                <div >
                <label class="control-label col-sm-2"><fmt:message key="loanRequest.basicPrice"/> </label>
                <div class="col-sm-4">
                    <form:input path="basicPrice" id="basicPrice" type="text" class="form-control" disabled="${!editCondition}"/>
                </div>
                    <label class="control-label col-sm-2"><fmt:message key="loanRequest.xishu"/> </label>
                    <div class="col-sm-4">
                        <form:input path="xishu" id="xishu" type="text" class="form-control" disabled="${!editCondition}"/>
                    </div>
                </div>
            </div>
            <input type="hidden" id="yearlyDebtSpending" value="${loanRequest.requestPersonCreditQuestionnaire.yearlyDebtSpending}"/>
            <input type="hidden" id="yearlyAffordableSpending" value="${loanRequest.requestPersonCreditQuestionnaire.yearlyAffordableSpending}"/>
            <input type="hidden" id="usedAmount" value="${loanRequest.requestPersonCreditQuestionnaire.usedAmount}"/>
            <input type="hidden" id="unfinishedLoanAmount" value="${loanRequest.requestPersonCreditQuestionnaire.unfinishedLoanAmount}"/>
            <input type="hidden" id="guaranteeBalanceForOthers" value="${loanRequest.requestPersonCreditQuestionnaire.guaranteeBalanceForOthers}"/>
          <c:if test="${loanRequest.coLoaned}">
            <input type="hidden" id="yearlyDebtSpendingCO" value="${loanRequest.coPersonCreditQuestionnaire.yearlyDebtSpending}"/>
            <input type="hidden" id="yearlyAffordableSpendingCO" value="${loanRequest.coPersonCreditQuestionnaire.yearlyAffordableSpending}"/>
            <input type="hidden" id="usedAmountCO" value="${loanRequest.coPersonCreditQuestionnaire.usedAmount}"/>
            <input type="hidden" id="unfinishedLoanAmountCO" value="${loanRequest.coPersonCreditQuestionnaire.unfinishedLoanAmount}"/>
            <input type="hidden" id="guaranteeBalanceForOthersCO" value="${loanRequest.coPersonCreditQuestionnaire.guaranteeBalanceForOthers}"/>
          </c:if>
          <c:if test="${loanRequest.guaranted}">
            <input type="hidden" id="yearlyDebtSpendingDB" value="${loanRequest.dbPersonCreditQuestionnaire.yearlyDebtSpending}"/>
            <input type="hidden" id="yearlyAffordableSpendingDB" value="${loanRequest.dbPersonCreditQuestionnaire.yearlyAffordableSpending}"/>
            <input type="hidden" id="usedAmountDB" value="${loanRequest.dbPersonCreditQuestionnaire.usedAmount}"/>
            <input type="hidden" id="unfinishedLoanAmountDB" value="${loanRequest.dbPersonCreditQuestionnaire.unfinishedLoanAmount}"/>
            <input type="hidden" id="guaranteeBalanceForOthersDB" value="${loanRequest.dbPersonCreditQuestionnaire.guaranteeBalanceForOthers}"/>
          </c:if>
            <div class="form-group">
                <label class="control-label col-sm-2"><fmt:message key="loanRequest.creditCountType"/> </label>
                <div class="col-sm-4">
                    <form:select path="creditScoreType" class="form-control" id="creditType" >
                        <form:option value="1"><fmt:message key="loanRequest.creditCountType.asset"/></form:option>
                        <form:option value="2"><fmt:message key="loanRequest.creditCountType.income"/></form:option>
                    </form:select>
                </div>
                <label class="control-label col-sm-2"><fmt:message key="loanRequest.creditCountValue"/> </label>
                <div class="col-sm-4">
                    <form:input path="creditScore" id="creditValue" type="text" class="form-control" readonly="true"/>
                </div>
            </div>
            <%--<div class="form-group">--%>
                <%--<label class="control-label col-sm-2"><fmt:message key="loanRequest.calComment"/> </label>--%>
                <%--<div class="col-sm-4">--%>
                    <%--<form:input path="calComment" id="calComment" type="text" class="form-control" disabled="${!editCondition}"/>--%>
                <%--</div>--%>

            <%--</div>--%>

        </div>
      </div>
    </div>

  </c:if>
</security:authorize>
